package com.scsj.supermarket.base;

import com.scsj.supermarket.bean.BaseBean;
import com.scsj.supermarket.bean.DeliveryAddressBean;

import dkmvp.net.ResponseCallback;
import okhttp3.RequestBody;
import rx.Subscription;

/**
 * 新增和修改收货地址BASE
 */

public class AddAndAlterDeliveryAddressBase {

    public interface IView {

        void AddDASuccessMsg(String s, BaseBean addDABean);

        void AlterDASuccessMsg(String s, BaseBean deleteDABean);

        void showDAErrorMsg(String s);
    }

    public interface IPresenter {

        /**
         * 新增收货地址
         */
        void deliverAddDAData(RequestBody requestBody);

        /**
         * 修改收货地址
         */
        void deliverAlterDAData(RequestBody requestBody);
    }

    public interface IModel {

        /**
         * 新增收货地址
         */
        Subscription getAddDAData(RequestBody requestBody, ResponseCallback<BaseBean> callback);

        /**
         * 修改收货地址
         */
        Subscription getAlterDAData(RequestBody requestBody, ResponseCallback<BaseBean> callback);
    }

}
